import request from './request.js';
// 登录
export function getlogin(data) {
	return request({
		url: '/login',
		method: 'POST',
		data
	})
}

// 获取验证码
export function getText() {
	return request({
		url: '/captchaImage',
		method: 'get',
	})
}
// 拿到个人信息
export function getUserinfo() {
	return request({
		url: '/getInfo',
		method: 'get',
	})
}
//退出
export function logout() {
	return request({
		url: '/logout',
		method: 'post'
	})
}
//查询产品产线
export function getProduct(data) {
	return request({
		url: '/mini/program/query/product',
		method: 'post',
		data
	})
}
//通过产线 查询设备列表
export function getLineList(data) {
	return request({
		url: '/mini/program/query/bench/list/by/line',
		method: 'post',
		data
	})
}
//查询物料
export function getMaterial(data) {
	return request({
		url: '/mini/program/query/material/list/by/position',
		method: 'post',
		data
	})
}
export function checkMaterial(data) {
	return request({
		url: '/mini/program/check/material',
		method: 'post',
		data
	})
}
//获取工位列表
export function getPositionList(data) {
	return request({
		url: '/mini/program/query/position/list/by/bench',
		method: 'post',
		data
	})
}
//检测输入的物料
export function checkwulaio(data) {
	return request({
		url: '/material/query/list/by/select/code',
		method: 'post',
		data
	})
}



//检测输入的物料
export function checkCode(data) {
	return request({
		url: '/material/query/list/by/code',
		method: 'post',
		data
	})
}

//检测输入的物料
export function jancCode(data) {
	return request({
		url: '/mini/program/check/material/again',
		method: 'post',
		data
	})
}

